﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace DAL.Translator
{
    /// <summary>
    /// Define Authority Level Translator
    /// </summary>
    public class AuthorityLevelTranslator
    {
        /// <summary>
        /// To Translate AuthorityLevelDataEntity to AuthorityLevelBusinessEntity
        /// </summary>
        /// <param name="authoritylevelDE"></param>
        /// <returns></returns>
        public static BLL.AuthorityLevel TranslateEntityToBusiness(DAL.AuthorityLevel authoritylevelDE)
        {
            BLL.AuthorityLevel authoritylevelBE = new BLL.AuthorityLevel();
            authoritylevelBE.LevelId = authoritylevelDE.LevelId;
            authoritylevelBE.LevelName = authoritylevelDE.LevelName;
            return authoritylevelBE;
        }

        /// <summary>
        /// To Translate AuthorityLevelBusinessEntity to AuthorityLevelDataEntity
        /// </summary>
        /// <param name="authoritylevelBE"></param>
        /// <returns></returns>
        public static DAL.AuthorityLevel TranslateBusinessToEntity(BLL.AuthorityLevel authoritylevelBE)
        {
            DAL.AuthorityLevel authoritylevelDE = new DAL.AuthorityLevel();
            authoritylevelDE.LevelId = authoritylevelBE.LevelId;
            authoritylevelDE.LevelName = authoritylevelBE.LevelName;
            return authoritylevelDE;
        }
    }
}
